import numpy as np
import altair as alt
import pandas as pd
import streamlit as st

st.header('st.header')
st.subheader('st.subheader')
st.caption('st.caption')
st.latex('st.latex')
st.code('st.write\ntest123')

st.write('Hello, *World!* :sunglasses:')
st.text('Hello, *World!* :sunglasses:')
st.markdown('Hello, *World!* :sunglasses:')

st.write(1234)

df = pd.DataFrame({
     '产品序号': [1, 2, 3, 4],
     '销售价格': [10, 20, 30, 40]
     })
st.write(df)

st.write('Below is a DataFrame:', df, 'Above is a dataframe.')

df2 = pd.DataFrame(
     np.random.randn(800, 3),
     columns=['a', 'b', 'c'])
c = alt.Chart(df2).mark_circle().encode(
     x='a', y='b', size='c', color='c', tooltip=['a', 'b', 'c'])
st.write(c)